package com.hh.game.common.base.manager.session;

import io.netty.channel.Channel;
import io.netty.util.AttributeKey;

import java.util.Map;

public interface Session {
    AttributeKey<Session> SESSION_KEY = AttributeKey.valueOf("GAME_SESSION");
    String getId();

    boolean isOpen();

    boolean isLogin();

    void login();

    void close();

    Channel channel();

    Map<String, Object> getParameterMap();

    void addParameter(String key, Object val);

    Object getParameter(String key);

    void sendClient(String route ,Object msg);
}
